package com.tianpengtech.front.generator;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.jfinal.ext.interceptor.POST;
import com.tianpengtech.common.GlobalConfigConstant;

public class GeneratorController extends Controller {

    public void index() {

        renderTemplate("index.html");
    }


//    @Before(POST.class)
//    public void doGenerator() {
//        String moduleName = getPara("moduleName", GlobalConfigConstant.DEFAULT_VALUE_EMPTY);
//        String modelName = getPara("modelName", GlobalConfigConstant.DEFAULT_VALUE_EMPTY);
//        String tableName = getPara("tableName", GlobalConfigConstant.DEFAULT_VALUE_EMPTY);
//        String tableRemark = getPara("tableRemark", GlobalConfigConstant.DEFAULT_VALUE_EMPTY);
//        setAttr("moduleName", moduleName);
//        setAttr("modelName", modelName);
//        setAttr("tableName", tableName);
//        setAttr("tableRemark", tableRemark);
//        renderTemplate("result.html");
//    }

    public void help() {

        renderTemplate("help.html");
    }

}
